//
//  chooseNumTitleView.m
//  MoXiProject
//
//  Created by 沈晨宇 on 2017/7/17.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "chooseNumTitleView.h"

@implementation chooseNumTitleView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = baseWhiteColor;
        [self initUI];
    }
    return self;
}
-(void)initUI{
    
    UIView* line=[UIView new];
    line.backgroundColor=DEF_COLOR_MAINCOLOR;
    [self addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(4);
        make.height.mas_equalTo(18);
        make.top.equalTo(self).with.offset(5);
        make.leading.equalTo(self).with.offset(10);
    }];
    
    self.faxed=[UILabel new];
    self.faxed.font=DEF_MyFont(15);
    self.faxed.textColor=baseLightBlackColor;
    self.faxed.textAlignment=NSTextAlignmentLeft;
    [self addSubview:self.faxed];
    [self.faxed mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(100);
        make.height.mas_equalTo(18);
        make.centerY.equalTo(line);
        make.leading.equalTo(line.mas_trailing).with.offset(5);
    }];
    
    UIView* line2=[UIView new];
    line2.backgroundColor=DEF_COLOR_F0F0F0;
    [self addSubview:line2];
    [line2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(DEF_DEVICE_WIDTH);
        make.height.mas_equalTo(1);
        make.top.equalTo(self.faxed.mas_bottom).with.offset(5);
        make.leading.equalTo(self).with.offset(0);
    }];
}

@end
